package model.board;

import org.springframework.web.multipart.MultipartFile;

public class FreeBoardVO {
	private int b_no;
	private String b_title;
	private String b_writer;
	private String b_content;
	private String b_date;
	private int b_cnt;
	private int b_ref;
	private int b_restep;
	private int b_relevel;
	private String m_id;
	private MultipartFile uploadFile;// 업로드 파일
	private String orgfilename;// 업로드한 원본 파일명
	private String newfilename;// 시간_파일명 변경 파일명
	private int totalReply; //댓글 게시물수 
	public FreeBoardVO() {
		super();
		// TODO Auto-generated constructor stub
	}
	public FreeBoardVO(int b_no, String b_title, String b_writer,
			String b_content, String b_date, int b_cnt, int b_ref,
			int b_restep, int b_relevel, String m_id, MultipartFile uploadFile,
			String orgfilename, String newfilename, int totalReply) {
		super();
		this.b_no = b_no;
		this.b_title = b_title;
		this.b_writer = b_writer;
		this.b_content = b_content;
		this.b_date = b_date;
		this.b_cnt = b_cnt;
		this.b_ref = b_ref;
		this.b_restep = b_restep;
		this.b_relevel = b_relevel;
		this.m_id = m_id;
		this.uploadFile = uploadFile;
		this.orgfilename = orgfilename;
		this.newfilename = newfilename;
		this.totalReply = totalReply;
	}
	public int getB_no() {
		return b_no;
	}
	public void setB_no(int b_no) {
		this.b_no = b_no;
	}
	public String getB_title() {
		return b_title;
	}
	public void setB_title(String b_title) {
		this.b_title = b_title;
	}
	public String getB_writer() {
		return b_writer;
	}
	public void setB_writer(String b_writer) {
		this.b_writer = b_writer;
	}
	public String getB_content() {
		return b_content;
	}
	public void setB_content(String b_content) {
		this.b_content = b_content;
	}
	public String getB_date() {
		return b_date;
	}
	public void setB_date(String b_date) {
		this.b_date = b_date;
	}
	public int getB_cnt() {
		return b_cnt;
	}
	public void setB_cnt(int b_cnt) {
		this.b_cnt = b_cnt;
	}
	public int getB_ref() {
		return b_ref;
	}
	public void setB_ref(int b_ref) {
		this.b_ref = b_ref;
	}
	public int getB_restep() {
		return b_restep;
	}
	public void setB_restep(int b_restep) {
		this.b_restep = b_restep;
	}
	public int getB_relevel() {
		return b_relevel;
	}
	public void setB_relevel(int b_relevel) {
		this.b_relevel = b_relevel;
	}
	public String getM_id() {
		return m_id;
	}
	public void setM_id(String m_id) {
		this.m_id = m_id;
	}
	public MultipartFile getUploadFile() {
		return uploadFile;
	}
	public void setUploadFile(MultipartFile uploadFile) {
		this.uploadFile = uploadFile;
	}
	public String getOrgfilename() {
		return orgfilename;
	}
	public void setOrgfilename(String orgfilename) {
		this.orgfilename = orgfilename;
	}
	public String getNewfilename() {
		return newfilename;
	}
	public void setNewfilename(String newfilename) {
		this.newfilename = newfilename;
	}
	public int getTotalReply() {
		return totalReply;
	}
	public void setTotalReply(int totalReply) {
		this.totalReply = totalReply;
	}
	@Override
	public String toString() {
		return "FreeBoardVO [b_no=" + b_no + ", b_title=" + b_title
				+ ", b_writer=" + b_writer + ", b_content=" + b_content
				+ ", b_date=" + b_date + ", b_cnt=" + b_cnt + ", b_ref="
				+ b_ref + ", b_restep=" + b_restep + ", b_relevel=" + b_relevel
				+ ", m_id=" + m_id + ", uploadFile=" + uploadFile
				+ ", orgfilename=" + orgfilename + ", newfilename="
				+ newfilename + ", totalReply=" + totalReply + "]";
	}
	
}
